Skip to content

fix(inbox): keep founder sidebars focused and preserve linked bots - #178

Open
nullStack65 wants to merge 4 commits into
release/native-0.1.10from
t3/fix-founder-inbox-default-shared-clo1108
Open

nullStack65 wants to merge 4 commits into
release/native-0.1.10from
t3/fix-founder-inbox-default-shared-clo1108

Conversation

@nullStack65

@nullStack65 nullStack65 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Problem

Founder sidebars could reopen without Shared or include the entire Agents backlog on reset. New threads could arrive without inbox metadata. The Inbox filter clipped host and attribution labels, and standing bots reached the Bots shelf only when the client connected directly to their host.

Change

  • Default to the active founder and Shared, including legacy owner-only selections. Reset clears the saved selection and updates the running renderer. Agents remains available on demand, so an inbox reset keeps the decision view usable even with hundreds of autonomous threads. A previously saved three-inbox choice needs one reset to adopt the new default because it looks identical to an intentional selection. Direct edits to the Electron settings file take effect on renderer reload.
  • Write a non-null inbox for new threads. WebSocket create and launch prefer the destination session's founder binding and preserve explicit Shared routing. An unattributed conversation uses the Agents filter without being treated as finished autonomous work.
  • Preserve the standing persona from the host's thread list through peer sidebar forwarding and client decoding. Restrict personal desks to their founder and exclude inherited child personas from Bots. Cap the menu to the viewport and wrap counts below the label when space is limited.

Scope

Founder inbox audit and permanent prevention, CLO-1108. The affected serializer is apps/server/src/peer/linkedSidebar.ts:76. The audited build 3ad1bfdd4f7114343ee6b6baf3b7854bdbb6c384 and the release branch at 18cf8f27f1df245acf78bbbbbea34c1475f4585a both omitted the persona. Regression tests cover the host list, peer summary, and client decoder.

Verification

  • 123 focused tests passed. A separate settlement sweep regression passed after the one independent Claude Opus review identified the unbound-human issue.
  • Chromium verified both founder views with a four-host linked sidebar fixture at 1280 and 360 pixels. Both passed on 4452a795a0, including Reset updating the running UI and persisting to the client settings store. Typechecks passed for Contracts, Client Runtime, Server, Web, Desktop, and Mobile. Changed-file formatting and lint passed.
  • The earlier broad changed-file check reported Knip, wider typecheck, and existing sidebar suite failures. ARC CI is still queued. The PR remains draft while those checks are outstanding. Tests use synthetic data. The fleet's existing bot routing and native devices were not changed or exercised by this PR.

Deploy: none
Model: GPT-6
Task: bugfix
Agent: Codex
Harness: Codex CLI in T3 Code

Jeff — personal and Shared desks and the readable four-host filter

Kameron — personal and Shared desks and the readable four-host filter

Jeff — 360px viewport

Kameron — 360px viewport

Before

The same synthetic sidebar fixture with the release-base filter menu.

Jeff with the release-base filter menu

Kameron with the release-base filter menu

Jeff with the release-base filter menu

Kameron with the release-base filter menu

Model: GPT-6
Task: bugfix
Agent: Codex
Lane: codex
Model: GPT-6
Task: bugfix
Agent: Codex
Lane: codex
@nullStack65
nullStack65 force-pushed the t3/fix-founder-inbox-default-shared-clo1108 branch from 4452a79 to 9a124b1 Compare November 25, 2026 02:10
@nullStack65
nullStack65 marked this pull request as ready for review November 25, 2026 02:10
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

The inbox routing commit left a stale duplicate dispatch branch and a
second InboxActor import in ws.ts, which broke parsing (TS1005/TS1128).
Restore ws.ts to the already-correct fileUnderCreator version; the PR's
inbox behavior lives elsewhere.

Model: Claude Sonnet 5.5
Task: CLO-1108
Agent: Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nullStack65

Copy link
Copy Markdown
Owner Author

Cross-family PR Review (1e5137e45a6f6d5cc6734f7e8465226ff2b7c52f)

Reviewed the full diff against release/native-0.1.10 (17 files) in a detached worktree and ran targeted unit tests across packages/contracts, packages/client-runtime, apps/server, and apps/web (all passing locally; Playwright browser test verified green in ARC CI).

Findings

  • F1 (important) — apps/web/src/components/sidebar/SidebarThreadFilterMenu.tsx:152-156:
    keepsShared omits a checked && guard:

    const keepsShared =
      inbox === "shared" &&
      owner !== undefined &&
      filter.inboxes.length === 2 &&
      filter.inboxes.includes(owner);

    When a founder enables a third inbox (e.g. ["jeff", "shared", "agents"]) and then unchecks Shared (yielding ["jeff", "agents"]), keepsShared still evaluates to true even though Shared is unchecked (checked === false). This disables the unchecked Shared menu item with the misleading aria-label ", stays checked with the founder-only selection", locking the user out of re-checking Shared until they select another inbox, uncheck their own inbox, or reset.
    Fix: guard with checked && (const keepsShared = checked && inbox === "shared" && ...) and add a regression assertion covering unchecking and re-checking Shared alongside Agents.

  • F2 (nit) — apps/web/src/components/sidebar/threadListFilter.logic.ts:322-330:
    threadListFilterCounts still sets standingVisible: standingBotBypassesListFilters(thread) for all non-archived standing bots, whereas matchesThreadListFilter now scopes standing bots by viewingFounder, filter.inboxes, and filter.hiddenAttributions. This causes faceted counts for Environments, From, and the other founder's Inbox to include standing bots that are hidden in the sidebar.

{
  "reviewed_head": "1e5137e45a6f6d5cc6734f7e8465226ff2b7c52f",
  "reviewer": "Gemini 4 Neon, Antigravity",
  "findings": [
    {
      "id": "F1",
      "severity": "important",
      "summary": "SidebarThreadFilterMenu.tsx keepsShared omits `checked &&`, disabling the unchecked Shared checkbox whenever a founder selects `[owner, other]` (e.g. `[jeff, agents]`) and locking them out of re-checking Shared.",
      "outcome": "open"
    },
    {
      "id": "F2",
      "severity": "nit",
      "summary": "threadListFilterCounts still passes standingVisible: standingBotBypassesListFilters(thread) even though matchesThreadListFilter now filters standing bots by viewingFounder, inboxes, and hiddenAttributions, causing minor faceted count drift.",
      "outcome": "open"
    }
  ]
}

…t counts

Unchecking Shared while Agents was also selected left the Shared menu item
disabled, because the keep-checked guard ignored whether Shared was checked.
The guard is now a tested helper that applies only while Shared is checked.
Inbox, Environment and From counts also now treat standing bots the way
matchesThreadListFilter does for a viewing founder.

Model: claude-sonnet-5-5
Task: CLO-1108
Agent: claude-code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nullStack65

Copy link
Copy Markdown
Owner Author

Cross-family PR Review Re-check (1e5137e45a6f..86e810c377d4)

Verified the fix delta on exact head 86e810c377d4b7007d591da33d7d21e756ed1c28 in a detached worktree and ran apps/web unit tests (threadListFilter.logic.test.ts: 15/15 passed; botPresence.test.ts: 11/11 passed).

Verification

  • F1 (important) — confirmed: inboxKeepsSharedChecked in apps/web/src/components/sidebar/threadListFilter.logic.ts now guards with filter.inboxes.includes("shared") and is called from SidebarThreadFilterMenu.tsx. Unchecking Shared from [owner, shared, agents] leaves Shared enabled and re-checkable, while [owner, shared] still keeps Shared checked. Regression test covers both paths.
  • F2 (nit) — fixed: threadListFilterCounts now filters out non-listed standing bots via standingListedFor(thread, viewingFounder) and restricts standingVisible via standingBypassesCountFilters(thread, viewingFounder), aligning faceted counts with matchesThreadListFilter. Unit tests updated and passing.

No new regressions introduced.

{
  "reviewed_head": "1e5137e45a6f6d5cc6734f7e8465226ff2b7c52f",
  "reviewer": "Gemini 4 Neon, Antigravity",
  "findings": [
    {
      "id": "F1",
      "severity": "important",
      "summary": "SidebarThreadFilterMenu.tsx keepsShared omits `checked &&`, disabling the unchecked Shared checkbox whenever a founder selects `[owner, other]` (e.g. `[jeff, agents]`) and locking them out of re-checking Shared.",
      "outcome": "confirmed",
      "rechecked_head": "86e810c377d4b7007d591da33d7d21e756ed1c28"
    },
    {
      "id": "F2",
      "severity": "nit",
      "summary": "threadListFilterCounts still passes standingVisible: standingBotBypassesListFilters(thread) even though matchesThreadListFilter now filters standing bots by viewingFounder, inboxes, and hiddenAttributions, causing minor faceted count drift.",
      "outcome": "fixed",
      "rechecked_head": "86e810c377d4b7007d591da33d7d21e756ed1c28"
    }
  ]
}

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant